package com.learn.algorithm.designpattern.strategy;

import java.util.StringJoiner;

/**
 * @author wangxing
 * @version 2020/8/20 6:51 Administrator
 */
public class Person {
    private Integer age,height,weight;

    public Person() {
    }

    public Person(Integer age, Integer height, Integer weight) {
        this.age = age;
        this.height = height;
        this.weight = weight;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Person.class.getSimpleName() + "[", "]")
                .add("age=" + age)
                .add("height=" + height)
                .add("weight=" + weight)
                .toString();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
}
